package com.technology.education.data.model

/**
 *@author:create by BZY
 *Date: 2022/3/17 14
 * 消息列表
 */

data class MessageListModel(
    val list: List<Message>?,
    val pageNo: Int,
    val pageSize: Int,
    val total: Int
)

data class Message(
    val createDate: String,
    val id: String,
    val messageType: String,
    val relateIds: String?,
    val subhead: String?,
    val title: String,
    val url: String?,
    val viewed: String? //是否已读 1是 0否
) {
    val isRead: Boolean get() = viewed == "1"
}